﻿using System;
using System.Collections.Generic;
using System.ServiceModel;
using WcfService1.DTO;

namespace WcfService1
{
    // NOTE: You can use the "Rename" command on the "Refactor" PurchaseReturn to change the interface name "IPurchaseReturnServices" in both code and config file together.
    [ServiceContract]
    public interface IPurchaseReturnServices
    {
        [OperationContract]
        List<PurchaseReturnDTO> GetList(int page, out long recordCount, string sortProperty = null,
                                        string sortType = "ASC");

        [OperationContract]
        bool Save(PurchaseReturnDTO PurchaseReturn);

        [OperationContract]
        bool Delete(PurchaseReturnDTO PurchaseReturn);

        [OperationContract]
        List<PurchaseReturnDTO> GetListByCriteria(Dictionary<String, Object> criteria, string expression, int page,
                                                  out long recordCount);

        [OperationContract]
        List<PurchaseReturnDTO> GetAllPurchaseReturn();

        [OperationContract]
        PurchaseReturnDTO GetPurchaseReturn(string PRNo);

        [OperationContract]
        List<PurchaseReturnDTO> GetPurchaseReturnList(string PRNo);

        [OperationContract]
        string GetLastPRNo();

        [OperationContract]
        bool DeleteDetail(PurchaseReturnDetailDTO purchaseReturnDetailDTO);

        [OperationContract]
        bool SendEmail(PurchaseReturnDTO obj, String DestinationFolder);

        [OperationContract]
        void UpdateStatus(PurchaseReturnDTO purchaseReturnDto, Status status);
    }
}